package com.func.domain.activity.model.entity;

import com.func.domain.activity.model.valobj.UserRaffleOrderStateVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <p>
 * UserRaffleOrderEntity
 * </p>
 *
 * @author Simon
 * @version 2025.03.14.1.0.0
 * @description 用户抽奖账单实体, 里面是用户一次的下单
 * @since 2025-03-14
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserRaffleOrderEntity {

    private String userId;

    /** 活动ID*/
    private Long activityId;

    /** 活动名称*/
    private String activityName;

    /** 抽奖策略ID*/
    private Long strategyId;

    /** 订单ID*/
    private String orderId;

    /** 下单时间*/
    private Date orderTime;

    /** 订单状态；create-创建、used-已使用、cancel-已作废*/
    private UserRaffleOrderStateVO orderState;
    /** 结束时间*/
    private Date endDateTime;
}
